package com.itheima.dao;

import com.itheima.pojo.Order;
import com.itheima.pojo.OrderDetails;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface OrderDao {
    //根据id查询会员信息

    OrderDetails findById(Integer id);
    //根据会员id查询预约信息
    @Select("select * from t_order where member_id = #{id} and setmeal_id=#{setmealId}")
    Order findByMemberId(Integer id , Integer setmealId);
    //添加预约信息

    void insert(Order order);
}
